package com.shanzhu.tourism.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: cc
 * @Date: 2025/03/28/15:00
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Product {
    private Long productId;
    private Long categoryId;
    private String productName;
    private String productDesc;
    private BigDecimal price;
    private Integer stock;
    private Integer sales;
    private String mainImage;
    private Integer status;
    private Date createTime;
    private Date updateTime;

    // 关联查询字段
    @TableField(exist = false)
    private String categoryName;
}